package com.yunpeng.aidevice.dao.model.entity;

import com.yunpeng.aidevice.dao.model.BaseEntityDO;

/**
 * <p>
 * 组织机构
 * </p>
 *
 * @author hemw
 * @since 2020-04-07
 */
public class OrganizationDO extends BaseEntityDO {

    private static final long serialVersionUID = 1L;

    /**
     * 父结构代码
     */

    private String parentCode;

    /**
     * 节点等级
     * 0 顶层节点
     * 1 1级节点
     * 2 2级节点
     * 3 3级节点
     * 4 4级节点
     * 5 5级节点
     * 6 6级节点
     */

    private Integer level;

    /**
     * 节点路径
     */

    private String nodePath;

    /**
     * 节点路径名称
     */

    private String pathName;

    /**
     * 商户代码
     */
    private String merchantCode;

    /**
     * 是否禁用
     */
    private Boolean disabled;

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getNodePath() {
        return nodePath;
    }

    public void setNodePath(String nodePath) {
        this.nodePath = nodePath;
    }

    public String getPathName() {
        return pathName;
    }

    public void setPathName(String pathName) {
        this.pathName = pathName;
    }

    public Boolean getDisabled() {
        return disabled;
    }

    public void setDisabled(Boolean disabled) {
        this.disabled = disabled;
    }

    public String getMerchantCode() {
        return merchantCode;
    }

    public void setMerchantCode(String merchantCode) {
        this.merchantCode = merchantCode;
    }

    @Override
    public String toString() {
        return "OrganizationDO{" +
                "id=" + id +
                ", creator=" + creator +
                ", createTime=" + createTime +
                ", updater=" + updater +
                ", updateTime=" + updateTime +
                ", flag=" + flag +
                ", name=" + name +
                ", code=" + code +
                ", tenantCode=" + tenantCode +
                ", parentCode=" + parentCode +
                ", level=" + level +
                ", nodePath=" + nodePath +
                ", number=" + number +
                ", pathName=" + pathName +
                ", merchantCode=" + merchantCode +
                ", disabled=" + disabled +
                "}";
    }
}
